package cz.none.bezbarier.web.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import cz.none.bezbarier.web.util.Constants;

@Controller
public class ProfileController extends AController {

	@PreAuthorize("hasRole('AUTHORIZED')")
	@RequestMapping(Constants.Page.USER_PROFILE_M)
	public String renderProfile(@PathVariable("userId") String userId, Model model) {

		return Constants.Page.USER_PROFILE;
	}
}
